From b06c3def04c03d8ebcbbc89e86d601211b2b2630 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Tue, 24 Feb 2015 13:12:05 +0100 Subject: [PATCH] fix style --- src/cargo/util/errors.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cargo/util/errors.rs b/src/cargo/util/errors.rs index 6869b347d..6e368712e 100644 --- a/src/cargo/util/errors.rs +++ b/src/cargo/util/errors.rs @@ -338,7 +338,10 @@ pub fn human(error: S) -> Box { }) } -pub fn caused_human(error: S, cause: E) -> Box { +pub fn caused_human(error: S, cause: E) -> Box + where S: fmt::Display, + E: Error + Send + 'static +{ Box::new(ConcreteCargoError { description: error.to_string(), detail: None, -- 2.30.2